cmake_minimum_required(VERSION 3.4.1)
project(MyCppApplication)

add_library(entry SHARED
    hello.cpp
    print.c
    huks_test.cpp
)
target_link_libraries(entry PUBLIC libace_napi.z.so)

target_include_directories(entry PUBLIC
    hiviewdfx_hilog/interfaces/native/innerkits/include
)
target_link_libraries(entry PUBLIC
    -L${PROJECT_SOURCE_DIR}/lib/${OHOS_ARCH}
    libhuks_ndk.z.so
    libhilog.so
)

# 在这里写不同架构特定编译逻辑
if (${OHOS_ARCH} STREQUAL "arm64-v8a")
    message("hello! arm64-v8a")
elseif (${OHOS_ARCH} STREQUAL "armeabi-v7a")
    message("hello! armeabi-v7a")
elseif (${OHOS_ARCH} STREQUAL "x86_64")
    message("hello! x86_64")
endif()
